package models

import org.joda.time.DateTime


case class Role(roleCode: String,
                roleName: String,
                joinTime: Option[DateTime],
                isDeleted: Boolean = false,
                roleDescrition: Option[String] = None,
                updateTime: Option[DateTime] = None,
                id: Option[Int] = None) extends BaseModel {

}

case class UserRole(userId: Int,
                    roleId: Int,
                    joinTime: Option[DateTime],
                    isDeleted: Boolean = false,
                    updateTime: Option[DateTime] = None,
                    id: Option[Int] = None) extends BaseModel

case class UserRoleR(userRole: UserRole, role: Role)

case class RoleQuery(
                      roleCode: Option[String],
                      roleName: Option[String],
                      joinTime: Option[DateTime],
                      isDeleted: Option[Boolean],
                      roleDescrition: Option[String],
                      updateTime: Option[DateTime],
                      id: Option[Int],
                      page: Option[Int],
                      pageSize: Option[Int]
                    )
